package api.list;

/**
 * @author Ann Raboschuk
 *
 */
public interface Iterator<T>
{
   /**
    * Returns the next element in the iteration.
    * 
    * @return the next element in the iteration 
    */
   T next();
   
   /**
    * Returns true if the iteration has more elements.
    * 
    * @return true if the iterator has more elements
    */
   boolean hasNext();
}
